@extends('layouts.app')
@section('content')
@include('editor::head')
<div class="container">
  <div class="row">
    <div class="col-md-9" role="mian">
      <form action="{{ url('post/create') }}" method="post">
      	{{csrf_field()}}
		  <div class="form-group">
		    <label for="exampleInputEmail1">标题</label>
		    <input type="text" class="form-control" name="title" placeholder="">
		    @if ($errors->has('title'))
                <span class="help-block">
                    <strong>{{ $errors->first('title') }}</strong>
                </span>
            @endif
		  </div>
		  <div class="form-group ">
		    <label for="exampleInputPassword1">内容</label>
		    <div class="editor">
		    <textarea class="form-control" rows="10" id='myEditor' name="content"></textarea>
		    </div>
		    @if ($errors->has('content'))
                <span class="help-block">
                    <strong>{{ $errors->first('content') }}</strong>
                </span>
            @endif
		  </div>
		  <button type="submit" class="btn btn-default">提交</button>
		</form>
    </div>
  </div>
</div>
@endsection